package com.feri.buy.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户设备表
 * </p>
 *
 * @author feri
 * @since 2022-02-17
 */
@TableName("t_user_device")
@Data
@NoArgsConstructor
public class UserDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String brand;
    private Long uid;

    //型号
    private String model;

    //类型 1安卓 2iphone 3.ipad")
    private String type;

    private LocalDateTime ctime;

    public UserDevice(String brand, Long uid, String model, String type) {
        this.brand = brand;
        this.uid = uid;
        this.model = model;
        this.type = type;
        this.ctime=LocalDateTime.now();
    }
}
